﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 实验1_3._1_3
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            int cj = int.Parse(TextBox1.Text);
            if (cj < 60)
            {
                TextBox2.Text = "不及格";
            }
            else if (cj >= 60 && cj < 80)
            {
                TextBox2.Text = "及格";
            }
            else if (cj < 90)
            {
                TextBox2.Text = "良好";
            }
            else if (cj <= 100)
            {
                TextBox2.Text = "优秀";
            }
            else { TextBox2.Text = "输入有误"; }
        }
    }
}